from PySide6 import QtGui

WHITE_COLOR = (255, 255, 255)
BLACK_COLOR = (0, 0, 0)
GREY_COLOR = (100, 100, 100)

UP_COLOR = (255, 75, 75)
DOWN_COLOR = (0, 255, 255)
CURSOR_COLOR = (255, 245, 162)

PEN_WIDTH = 1
BAR_WIDTH = 0.3

AXIS_WIDTH = 0.8
NORMAL_FONT = QtGui.QFont("Arial", 9)


UP_ARROW = '↑'
DOWN_ARROW = '↓'
DOT = '.'
EQUAL = '='
LINE = '-'
STAR = '*'
DIAMOND = b'\xef\x81\xb4'.decode("utf-8")
WLEFT_ARROW = b'\xef\x83\xb0'.decode("utf-8")
WUP_ARROW = b'\xef\x83\xb1'.decode("utf-8")
WDOWN_ARROW = b'\xef\x83\xb2'.decode("utf-8")
WLEFT_RIGHT_ARROW = b'\xef\x83\xb3'.decode("utf-8")
WUP_DOWN_ARROW = b'\xef\x83\xb4'.decode("utf-8")

# 画图区域
AREA_MAIN = 'MAIN'  # 主绘图区域
AREA_VOL = 'VOLUME'  # 成交量绘图区域
AREA_SECONDARY = 'SECONDARY'  # 辅助绘图区域
# Y轴刻度
SCALE_MAIN = 'MAIN_SCALE'  # 主坐标轴（左轴）
SCALE_SECOND = 'SECOND_SCALE'  # 次坐标轴（右轴）
SCALE_WINDOW = 'WINDOW_SCALE'  # 无坐标轴，根据窗口的长宽及具体数据绘制图形
# 画线宽度
LINETHICK0 = 0
LINETHICK1 = 1

# 做图类型
GRAPH_TYPE_KBAR = 'KBAR'
GRAPH_TYPE_LINE = 'LINE'
GRAPH_TYPE_ARROW = 'ARROW'
GRAPH_TYPE_DOT = 'DOT'

if __name__ == '__main__':
    print(b'\xef\x80\xb0'.decode("utf-8"))
    print(b'\xef\x80\xb1'.decode("utf-8"))
    print(b'\xef\x80\xb2'.decode("utf-8"))
    print(b'\xef\x80\xb3'.decode("utf-8"))
    print(b'\xef\x80\xb4'.decode("utf-8"))
    print(b'\xef\x80\xb5'.decode("utf-8"))
    print(b'\xef\x80\xb6'.decode("utf-8"))
    print(b'\xef\x80\xb7'.decode("utf-8"))
    print(b'\xef\x80\xb8'.decode("utf-8"))
    print(b'\xef\x80\xb9'.decode("utf-8"))
    print(b'\xef\x80\xba'.decode("utf-8"))
    print(b'\xef\x80\xbb'.decode("utf-8"))
    print(b'\xef\x80\xbc'.decode("utf-8"))
    print(b'\xef\x80\xbd'.decode("utf-8"))
    print(b'\xef\x80\xbe'.decode("utf-8"))
    print(b'\xef\x80\xbf'.decode("utf-8"))

    print(b'\xef\x81\xb0'.decode("utf-8"))
    print(b'\xef\x81\xb1'.decode("utf-8"))
    print(b'\xef\x81\xb2'.decode("utf-8"))
    print(b'\xef\x81\xb3'.decode("utf-8"))
    print(b'\xef\x81\xb4'.decode("utf-8"))
    print(b'\xef\x81\xb5'.decode("utf-8"))
    print(b'\xef\x81\xb6'.decode("utf-8"))
    print(b'\xef\x81\xb7'.decode("utf-8"))
    print(b'\xef\x81\xb8'.decode("utf-8"))
    print(b'\xef\x81\xb9'.decode("utf-8"))
    print(b'\xef\x81\xba'.decode("utf-8"))
    print(b'\xef\x81\xbb'.decode("utf-8"))
    print(b'\xef\x81\xbc'.decode("utf-8"))
    print(b'\xef\x81\xbd'.decode("utf-8"))
    print(b'\xef\x81\xbe'.decode("utf-8"))
    print(b'\xef\x81\xbf'.decode("utf-8"))
    print(DIAMOND)
    print(b'\xef\x82\xb0'.decode("utf-8"))
    print(b'\xef\x82\xb1'.decode("utf-8"))
    print(b'\xef\x82\xb2'.decode("utf-8"))
    print(b'\xef\x82\xb3'.decode("utf-8"))
    print(b'\xef\x82\xb4'.decode("utf-8"))
    print(b'\xef\x82\xb5'.decode("utf-8"))
    print(b'\xef\x82\xb6'.decode("utf-8"))
    print(b'\xef\x82\xb7'.decode("utf-8"))
    print(b'\xef\x82\xb8'.decode("utf-8"))
    print(b'\xef\x82\xb9'.decode("utf-8"))
    print(b'\xef\x82\xba'.decode("utf-8"))
    print(b'\xef\x82\xbb'.decode("utf-8"))
    print(b'\xef\x82\xbc'.decode("utf-8"))
    print(b'\xef\x82\xbd'.decode("utf-8"))
    print(b'\xef\x82\xbe'.decode("utf-8"))
    print(b'\xef\x82\xbf'.decode("utf-8"))

    print('DIAMOND')
    print(b'\xef\x83\xb0'.decode("utf-8"))
    print(b'\xef\x83\xb1'.decode("utf-8"))
    print(b'\xef\x83\xb2'.decode("utf-8"))
    print(b'\xef\x83\xb3'.decode("utf-8"))
    print(b'\xef\x83\xb4'.decode("utf-8"))
    print(b'\xef\x83\xb5'.decode("utf-8"))
    print(b'\xef\x83\xb6'.decode("utf-8"))
    print(b'\xef\x83\xb7'.decode("utf-8"))
    print(b'\xef\x83\xb8'.decode("utf-8"))
    print(b'\xef\x83\xb9'.decode("utf-8"))
    print(b'\xef\x83\xba'.decode("utf-8"))
    print(b'\xef\x83\xbb'.decode("utf-8"))
    print(b'\xef\x83\xbc'.decode("utf-8"))
    print(b'\xef\x83\xbd'.decode("utf-8"))
    print(b'\xef\x83\xbe'.decode("utf-8"))
    print(b'\xef\x83\xbf'.decode("utf-8"))
